package com.ktkj.init.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ktkj.init.dto.PermissionInfoCondition;
import com.ktkj.init.dto.PermissionInfoForm;
import com.ktkj.init.entity.PermissionInfo;
import com.ktkj.init.vo.QueryResult;

import java.util.List;

/**
 * <p>
 * 权限信息表 服务类
 * </p>
 *
 * @author ktkj
 * @since 2021-12-31
 */
public interface PermissionInfoService extends IService<PermissionInfo> {

    /**
     * 复合查询
     *
     * @param condition the condition
     * @return the query result
     * @author :yanlixiong
     * @date :2020-04-14 17:53:10
     */
    QueryResult<PermissionInfo> page(PermissionInfoCondition condition);

    List<PermissionInfo> treeList();

    /**
     * 保存(增加/修改)
     *
     * @param form the form
     * @return the dict
     * @author :yanlixiong
     * @date :2020-04-14 17:53:10
     */
    PermissionInfo saveOrUpdate(PermissionInfoForm form);
}
